home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
program
/
tjgold.zip
/
INSTALL.003
/
DEMDIR5.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1995-05-29
|
2KB
|
53 lines
{--------------------------------------------------------------------------}
{ Product: TechnoJock's Turbo Toolkit GOLD }
{ }
{ TTT GOLD - DEMO PROGRAM }
{ }
{ Copyright 1986-1995 TechnoJock Software, Inc. }
{ All Rights Reserved }
{ Restricted by License }
{--------------------------------------------------------------------------}
{Description: DemDir5.pas
Illustrates using PromptDir to select a directory path.
}
program DemDir5;
{$I GOLDFLAG.INC}
uses CRT, DOS, GoldAttr, GoldFast, GoldLink, GoldDir, GoldHard,
GoldMisc, GoldIO, GoldKey, GoldWin;
var DirName: string;
procedure SetScreen;
{Paints the background}
begin
Clear(WhiteOnBlack,'░');
ClearLine(1,YellowOnBlue);
ClearLine(25,LightCyanOnBlue);
WritePlain(8,25,'│');
WriteCenter(1,UseTint,' File List ');
GotoXY(1,1);
end; {SetScreen}
begin { main }
{$IFOPT D+}
HeapRecord;
{$ENDIF}
SetScreen;
MouseShow(true);
DirName := PromptDir('','');
if DirName = '' then
PromptOK('','You Cancelled!')
else
PromptOK('','You chose '+DirName);
writeln('Press Enter to continue');
MouseShow(false);
Clear(LightGrayOnBlack,' ');
{$IFOPT D+}
HeapCheck;
{$ENDIF}
end.